<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/templates/template.xhtml">

	<ui:define name="conteudoPagina">

		<h:form>
			<p:growl id="growl" showDetail="true" sticky="true" />
			<p:fieldset legend="Cadastro de Membros">

				<h:panelGrid columns="2" cellpadding="5">
					<p:outputLabel value="Nome:" />
					<p:inputText value="#{membroBean.membroSelecionado.nome}" size="45" />

					<p:outputLabel value="Login:" />
					<p:inputText value="#{membroBean.membroSelecionado.login}" />

					<p:outputLabel value="Senha:" />
					<p:password value="#{membroBean.membroSelecionado.senha}"></p:password>

					<p:outputLabel value="Email:" />
					<p:inputText value="#{membroBean.membroSelecionado.email}"
						size="45" />
				</h:panelGrid>

				<p:commandButton value="Salvar" action="#{membroBean.salvar}"
					update="growl" icon="ui-icon-disk" />
			</p:fieldset>
		</h:form>


	</ui:define>
</ui:composition>

</html>